<?php

namespace App\Policies;

use App\Models\User;
use App\Models\ViewCount;

class ViewCountPolicy extends Policy
{
    public function update(User $user, ViewCount $view_count)
    {
        // return $view_count->user_id == $user->id;
        return true;
    }

    public function destroy(User $user, ViewCount $view_count)
    {
        return $user->hasRole('Founder');
    }
}
